#pragma once
class PboReadPixels
{
public:
	PboReadPixels();
	~PboReadPixels();

	void Init(int width, int height, int pixelSize);
	void Read(int x, int y);

	GLuint m_pboIds[2];
	int m_currPbo;
	GLenum m_pixelFormat;
	int m_width;
	int m_height;
	int m_dataSize;
	FIBITMAP *m_bmp;
	BYTE *m_data;
	int m_bmpIndex = 0;
};

